package moodish.dummy;

import java.util.LinkedList;

public class User {
	private String nickname;
	private String mood;
	private LinkedList<User> friends = new LinkedList<User>();

	public User(String nickname) {
		super();
		this.nickname = nickname;
		mood = "Default";
	}

	public String getNickname() {
		return nickname;
	}

	public LinkedList<User> getFriends() {
		return friends;
	}

	public void addFriend(User user) {
		friends.add(user);
	}

	public void rmFriend(User user) {
		friends.remove(user);
	}

	public String getMood() {
		return mood;
	}

	public void setMood(String mood) {
		this.mood = mood;
	}

	public boolean isFriend(User friend) {
		return friends.contains(friend);
	}

	@Override
	public String toString() {
		return ("User: " + nickname + "Mood: " + mood);
	}

}